]> dgit.raspbian.org Git - gnome-shell.git/commit
keyboard: Trigger OSK level changes on button release
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 15 Apr 2022 17:47:09 +0000 (19:47 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 10 Aug 2022 17:11:26 +0000 (17:11 +0000)
commit3b81e0f8eb5bedbdf1ab56fcf3db37994f9779f3
tree545913280dae3fd794df31e704889299a84ab557
parent6d230c82e344da86373f673fac1627187f78409d
keyboard: Trigger OSK level changes on button release

Keep it consistent with the rest of the actions. For long press
handling (i.e. shift turning to caps lock), this also means the
release action should be cancelled after any long press, to prevent
both from taking effect at the same time.

Prior to this commit, we used to switch level (and hide the button
being pressed) on button press, which made its long press handler
never get a paired release and end up triggering caps lock.
Performing the action on release ensures the shift key button does
not fall into this situation, making this issue moot.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2278>
js/ui/keyboard.js